package com.xs.tool.controller.index;

import com.xs.tool.common.base.BasicController;
import com.xs.tool.common.jwt.JwtToken;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Api(tags = "首页")
@Controller
public class IndexController extends BasicController {
  /**
   * @note save
   * @date 202011070936
   * @Author xs
   * @return
   */
  @RequestMapping(value = "/index", method = {RequestMethod.GET})
  @JwtToken
  @ApiOperation(value = "index",notes = "首页")
  public String index(
  ) {
    return "/index.html";
  }
  /**
   * 进入首页
   * @return
   */
  @RequestMapping("/")
  @JwtToken
  @ApiOperation(value = "index",notes = "首页")
  public String loginToIndex(){
    return "/index.html";
  }
}
